/*
 * loader.S - kernel loader
 *
 * Copyright (C) 2009 by TanMenglong <tanmenglong@gmail.com>
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the
 * Free Software Foundation, Inc.,
 * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

#include<boot.h>

.code16
.section .text
.globl _start
_start:
	MSG(loader_msg1)
	_endless_loop:jmp _endless_loop
	
loader_msg1:
	.asciz "loader: started..."
display:
	cld
	movb $0xe,%ah	/* use BIOS interrupt 10,e */
	movb $0xf,%bl	/* font color */
	display_start:
	lodsb
	orb %al,%al
	jz display_end
	int $0x10
	jmp display_start
	display_end:
	ret
	
